<template>
	<view class="content">
		<CustomNav title="我要维权" :isBack="true"></CustomNav>
		<image src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/bj.png"
			mode="widthFix" class="top-img"></image>
		<view class="top">
			<view class="menu-block">
				<view class="menu-item" @click="navigate('/page_other/project_right/progress-query/index')">
					<image src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/jd.png"
						class="menu-img" mode="widthFix"></image>
					<view class="title1">进度查询</view>
				</view>
				<view class="menu-item" @click="navigate('/page_other/project_right/policy/index?id=2238')">
					<image src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/zc.png"
						class="menu-img" mode="widthFix"></image>
					<view class="title1">政策法规</view>
				</view>
				<view class="menu-item" @click="navigate('/page_other/project_right/policy/index?id=2239')">
					<image src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/wq.png"
						class="menu-img" mode="widthFix"></image>
					<view class="title1">维权风采</view>
				</view>
				<view class="menu-item" @click="navigate('/page_other/project_right/policy/index?id=2240')">
					<image src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/al.png"
						class="menu-img" mode="widthFix"></image>
					<view class="title1">案例分析</view>
				</view>
			</view>
			<view class="menu-item" @click="navigate('/page_other/project_right/complaint/index')">
				<image
					src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/complaint.png"
					class="menu-img" mode="widthFix"></image>
				<view class="title">我要投诉</view>
			</view>
			<view class="info-item">
				<view class="tip">提示</view>
				<view class="text">
					本平台为酒泉市劳动保障监察支队的线上通道，为广大劳动者提供欠薪反映、办理查询等便捷服务，高效维护劳动者合法权益。您也可以直接拨打务工所在地劳动监察部门投诉电话直接投诉。</view>
				<view class="call-item">酒泉市劳动保障监察支队：0937-2612473
					<image
						src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/call.png"
						class="call-img" mode="widthFix" @click="callPhone"></image>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	import {
		CustomNav
	} from '@/components/CustomNav/CustomNav.vue'
	export default {
		components: {
			CustomNav
		},
		data() {
			return {}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			callPhone() {
				uni.makePhoneCall({
					phoneNumber: '0937-5933710',
					success() {
						console.log('拨打成功了');
					},
					fail() {
						console.log('拨打失败了');
					}
				})
			},
		},
		onShow() {},
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		min-height: 100vh;

		.top-img {
			width: 100%;
		}

		.top {
			display: flex;
			flex-direction: column;
			//width: 100%;
			background: #fff;
			margin-top: -70rpx;
			border-radius: 60rpx;
			position: relative;
			padding: 0 30rpx 30rpx;
			background: #F6F6F6;

			.menu-item {
				//width: calc((100% - 30rpx) / 2);
				margin-bottom: 20rpx;
				margin-top: 20rpx;

				.menu-img {
					width: 100%;
					position: relative;
				}

				.title {
					margin-top: -124rpx;
					position: relative;
					display: flex;
					justify-content: center;
					padding-left: 100rpx;
					color: #fff;
					font-size: 38rpx;
					font-weight: bold;
					margin-bottom: 40px;
				}
			}

			.menu-block {
				display: flex;
				margin-top: 20rpx;
				justify-content: space-around;
				// padding: 30rpx;
				box-sizing: border-box;

				.menu-item {
					width: calc((90% - 155rpx) / 4);
					margin-right: 20rpx;
					display: flex;
					flex-direction: column;
					justify-content: center;

					.menu-img {
						width: 100%;
						position: relative;
					}

					.title1 {
						font-size: 28rpx;
						margin-top: 20rpx;
					}
				}

				.menu-item:last-child {
					margin-right: 0;
				}
			}

			.info-item {
				// margin-top: 100rpx;
				width: 100%;
				border-radius: 30rpx;
				line-height: 60rpx;
				background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-wq/bg1.png');
				margin-bottom: 40rpx;

				.tip {
					text-align: center;
					font-size: 38rpx;
					margin-top: 30rpx;
					font-weight: bold;
				}

				.text {
					padding: 20rpx;
					text-indent: 50rpx;
				}

				.call-item {
					padding: 0 20rpx 40rpx 20rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;

					.call-img {
						width: 30rpx;
					}
				}
			}
		}
	}
</style>